package com.cdu.guoxinan.www.smartcom.config;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class OssProperties {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String dir;

    public void setEndpoint(String endpoint) { this.endpoint = endpoint; }

    public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; }

    public void setAccessKeySecret(String accessKeySecret) { this.accessKeySecret = accessKeySecret; }

    public void setBucketName(String bucketName) { this.bucketName = bucketName; }

    public void setDir(String dir) { this.dir = dir; }
} 